package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.sc.nft.enums.EcologyPoolLinkTypeEnum;
import com.sc.nft.enums.EcologyPoolPrizeBindTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 刘国航
 * @since 2024/8/10 17:12
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_ecology_pool_prize")
public class EcologyPoolPrize extends SuperEntity<EcologyPoolPrize> implements Serializable {
    private static final long serialVersionUID = 4057366174614782045L;

    /**
     * 绑定类型
     */
    private EcologyPoolPrizeBindTypeEnum bindType;

    /**
     * 绑定id
     */
    private Long bindId;

    /**
     * 物质类型
     */
    private EcologyPoolLinkTypeEnum linkType;

    /**
     * 物质数量
     */
    private BigDecimal linkCount;

    /**
     * 剩余物质数量
     */
    private BigDecimal remainCount;

    /**
     * 总份数
     */
    private Long linkNumber;

    /**
     * 剩余份数
     */
    private Long remainNumber;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

}
